package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the REFERENCE_ database table.
 * 
 */
@Entity
@Table(name="REFERENCE_")
@NamedQuery(name="Reference.findAll", query="SELECT r FROM Reference r")
public class Reference implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="REFERENCE_CODE")
	private long referenceCode;

	private String name;

	@Column(name="REFERENCE_VALUE")
	private String referenceValue;

	@Column(name="UNIT_")
	private String unit;

	//bi-directional many-to-many association to ChargeprojectTable
	@ManyToMany
	@JoinTable(
		name="RELATIONSHIP_149"
		, joinColumns={
			@JoinColumn(name="REFERENCE_CODE")
			}
		, inverseJoinColumns={
			@JoinColumn(name="CHARGECODE")
			}
		)
	private List<ChargeprojectTable> chargeprojectTables;

	public Reference() {
	}

	public long getReferenceCode() {
		return this.referenceCode;
	}

	public void setReferenceCode(long referenceCode) {
		this.referenceCode = referenceCode;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getReferenceValue() {
		return this.referenceValue;
	}

	public void setReferenceValue(String referenceValue) {
		this.referenceValue = referenceValue;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public List<ChargeprojectTable> getChargeprojectTables() {
		return this.chargeprojectTables;
	}

	public void setChargeprojectTables(List<ChargeprojectTable> chargeprojectTables) {
		this.chargeprojectTables = chargeprojectTables;
	}

}